Using variables in forms

For better results, do the following when using variables in forms:

Provide variable names that clearly indicate what the variables represent. For example, with multiple forms that ask for user names, item names, and location names, it's a good ides to use variable names that indicate the context of the data.
Make sure that the variable names correspond to the names expected by the application or script that receives the variables.
Use variables in the Timeline or movie clip to record and track information. (This is also called maintaining state.) This acts as the equivalent of using a hidden field in an HTML form to make it possible for your users to reset a form.
If you have variables attached to particular frames, use the _framesloaded property or the If Frame is Loaded statement to ensure that the variables are identified before sending them. See Checking whether a frame is loaded.
Evaluate variables before sending them to a web server. If a server-side application expects a number in a certain format, make sure the user has entered proper data. For more information, see Verifying entered data.